package search;

/**
 * User: 86156
 * Date: 2023-04-16
 * Time: 11:07
 */
public class Recursion {
    public static void main(String[] args) {
        System.out.println(getSum(100));

    }

    public static int getSum(int num){
        if(num == 1){
            return 1;
        }
        return num+getSum(num-1);
    }
}
